package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallActivityApplyShip;
import com.appkubes.mall.core.po.MallActivityApplyShipExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallActivityApplyShipMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallActivityApplyShipSqlProvider.class, method="countByExample")
    long countByExample(MallActivityApplyShipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallActivityApplyShipSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallActivityApplyShipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_activity_apply_ship",
        "where apply_key = #{applyKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String applyKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_activity_apply_ship (apply_key, app_key, ",
        "express_name, express_no, ",
        "ship_time, receive_time)",
        "values (#{applyKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{expressName,jdbcType=VARCHAR}, #{expressNo,jdbcType=VARCHAR}, ",
        "#{shipTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP})"
    })
    int insert(MallActivityApplyShip record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallActivityApplyShipSqlProvider.class, method="insertSelective")
    int insertSelective(MallActivityApplyShip record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallActivityApplyShipSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="apply_key", property="applyKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_name", property="expressName", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_no", property="expressNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="ship_time", property="shipTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="receive_time", property="receiveTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<MallActivityApplyShip> selectByExampleWithRowbounds(MallActivityApplyShipExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallActivityApplyShipSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="apply_key", property="applyKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_name", property="expressName", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_no", property="expressNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="ship_time", property="shipTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="receive_time", property="receiveTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<MallActivityApplyShip> selectByExample(MallActivityApplyShipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "apply_key, app_key, express_name, express_no, ship_time, receive_time",
        "from mall_activity_apply_ship",
        "where apply_key = #{applyKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="apply_key", property="applyKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_name", property="expressName", jdbcType=JdbcType.VARCHAR),
        @Result(column="express_no", property="expressNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="ship_time", property="shipTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="receive_time", property="receiveTime", jdbcType=JdbcType.TIMESTAMP)
    })
    MallActivityApplyShip selectByPrimaryKey(String applyKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallActivityApplyShipSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallActivityApplyShip record, @Param("example") MallActivityApplyShipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallActivityApplyShipSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallActivityApplyShip record, @Param("example") MallActivityApplyShipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallActivityApplyShipSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallActivityApplyShip record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_activity_apply_ship
     *
     * @mbg.generated
     */
    @Update({
        "update mall_activity_apply_ship",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "express_name = #{expressName,jdbcType=VARCHAR},",
          "express_no = #{expressNo,jdbcType=VARCHAR},",
          "ship_time = #{shipTime,jdbcType=TIMESTAMP},",
          "receive_time = #{receiveTime,jdbcType=TIMESTAMP}",
        "where apply_key = #{applyKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallActivityApplyShip record);
}